// 所有关于订单的接口
import request from '../utils/request'

// 获取下单商品列表
export function _getOrderList(){
  return request("/shopping-cart/info","get",{
    token:wx.getStorageSync("token")
  })
}
// 获取门店列表接口
export function _getShopList(data){
    return request("/shop/subshop/list","post",data)
}
// 提交订单接口
export function _createOrder(data){
  return request("/order/create","post",data)
}
// 订单徽章
export function _orderBadge(){
  return request("/order/statistics","get",{
    token:wx.getStorageSync('token')
  })
}
// 获取订单列表接口
export function _MyOrderList(status){
  return request("/order/list","post",{
    token:wx.getStorageSync("token"),
    status:status
  })
}
// 取消订单接口
export function _cancelOrder(orderId){
  return request("/order/close","post",{
    token:wx.getStorageSync("token"),
    orderId :orderId 
  })
}